<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-model与select</title>
</head>
<body>
    <div id="app">
        <!-- 给select加上multiple属性后,按住ctrl键+鼠标,可以选择多个值 -->
        <select name="abc" v-model="fruit" >
            <option value="苹果">苹果</option>
            <option value="荔枝">荔枝</option>
            <option value="香蕉">香蕉</option>
            <option value="榴莲">榴莲</option>
        </select>
        <h3>您选择的香蕉是:{{fruit}}</h3>
    </div>
    <script src="../vue/vue.js"></script>
    <script>
        const app = new Vue({
            el:"#app",
            data:{
                fruit:'香蕉'
            },
            methods: {
                
            },
        });
    </script>
</body>
</html>